	<div class="location">当前位置：
		<?php echo $this->Html->link('首页',array('controller'=>'Index','action'=>'index','plugin'=>false))?> &gt; 
		<span>票品导航</span>
		</div>
  	<div class="content">
		<div class="menuTop">
        	<span>演出分类</span>
            <ul>
            	<?php foreach ($siteTicketCate as $stk => $stc):?>
            	<li><a href="Tickets_nav#cate_<?php echo $stk ?>" rel="#cate_<?php echo $stk ?>"><?php echo $stc ?></a></li>
            	<?php endforeach;?>
            </ul>
            <div class="clear"></div>
        </div>
        <?php 
        	$colorbox = array(
				array('name'=>'ys01','rgb'=>'#e7f9ec'),
				array('name'=>'ys02','rgb'=>'#eef9ff'),
				array('name'=>'ys03','rgb'=>'#fff9e1'),
				array('name'=>'ys04','rgb'=>'#f4ebf8'),
				array('name'=>'ys05','rgb'=>'#f4ede7'),
				array('name'=>'ys06','rgb'=>'#e8eff8'),
				array('name'=>'ys07','rgb'=>'#e4f8ed'),
				array('name'=>'ys08','rgb'=>'#eaefda'),
        	)
        ?>
        <?php $c = -1;foreach ($siteTicketCate as $stk => $stc):$c++;?>
        	<div class="dhList gReen Box" id="cate_<?php echo $stk ?>">
        		<div class="<?php echo $colorbox[$c]['name'] ?>">
        			<span>
        				<br/>
        				<?php echo $stc?>
        			</span>
        		</div>
	        	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	              <thead>
	                  <tr>
	                    <td width="36%" height="38" align="center" bgcolor="<?php echo $colorbox[$c]['rgb']?>">活动名称</td>
	                    <td width="19%" height="38" align="center" bgcolor="<?php echo $colorbox[$c]['rgb']?>">场馆</td>
	                    <td width="12%" height="38" align="center" bgcolor="<?php echo $colorbox[$c]['rgb']?>">演出时间</td>
	                    <td width="24%" height="38" align="center" bgcolor="<?php echo $colorbox[$c]['rgb']?>">价格</td>
	                    <td width="9%"  height="38" align="center" bgcolor="<?php echo $colorbox[$c]['rgb']?>">订购</td>
	                  </tr>
	              </thead>
	              <tbody>
	              	<?php if(count($tickets[$stk])>0):?>
	              		<?php foreach ($tickets[$stk] as $ticket):?>
		              	 <tr>
			                <td height="33">
			                	<?php echo $this->Html->link($ticket['Ticket']['title'],
											citylink('Tickets','view')+array($ticket['Ticket']['id']),
											array("class"=>"name",'title'=>$ticket['Ticket']['title'])
									  )
								?>
			                </td>
			                <td height="33" align="center">
			                	<?php echo $this->Html->link($ticket['Venue']['title_cn'],
								            		citylink('Venues','view')+array($ticket['Venue']['id']),
								            		array('title'=>$ticket['Venue']['title_cn']));
								            ?>
			                </td>
			                <td height="33" align="center">
			                	<?php echo $ticket['Ticket']['showtime']?>
			                </td>
			                <td height="33" align="center">
			                	<?php 
                            		$price = array();
                            		foreach ($ticket['TicketPrice'] as $tp){
                            			$price[$tp['price']] = $tp['price'];
                            		}
                            		ksort($price);
                            	?>
			                	<span>
                            	<?php echo join('</span> <span>',$price) ?>
			                	</span>
			                </td>
			                <td height="33" align="center">
			                <?php echo $this->Html->link('订购',
											citylink('Tickets','view')+array($ticket['Ticket']['id']),
											array("class"=>"dinggou",'title'=>$ticket['Ticket']['title'])
									  )
								?>
			                </td>
			             </tr>
		              	<?php endforeach;?>
		             <?php else:?>
		             	<tr>
		             		<td colspan = 5 style = 'min-height:100px;'>&nbsp;<br/><br/><br/><br/><br/><br/></td>
		             	</tr>
		             <?php endif;?>
	              </tbody>
             </table>
            </div>
		<?php endforeach;?>
		 
 </div>	
